package com.igeekhome.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author Romeo
 */
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class Scan {
    private Integer id;

    private Integer waybillNumber;

    private Date operationDate;

    private Integer scanType;

    private Integer expressTypeId;

    private Integer itemTypeId;

    private String senderClient;

    private String receiver;

    private Integer transportMethodId;

    private Integer paymentMethodId;

    private Integer sendNetworkId;

    private BigDecimal weight;

    private Integer takerId;

    private Integer deliverymanId;

    private Integer scannerId;

    private Integer lastStopId;

    private Integer nextStopId;

    private Integer destinationId;

    private Integer shiftId;

    private Integer pouchId;

    private Integer carId;

    private Integer agentId;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd" ,timezone = "GMT+8 ")
    private Date createTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd" ,timezone = "GMT+8 ")
    private Date updateTime;

    private Integer status;

    private Integer scanPower;

    private Integer destinationNetworkId;

    private Integer scanNetworkId;
    
    @Override
    public String toString() {
        return "Scan{" +
                "id=" + id +
                ", waybillNumber=" + waybillNumber +
                ", operationDate=" + operationDate +
                ", scanType='" + scanType + '\'' +
                ", expressTypeId=" + expressTypeId +
                ", itemTypeId=" + itemTypeId +
                ", senderClient='" + senderClient + '\'' +
                ", receiver='" + receiver + '\'' +
                ", transportMethodId=" + transportMethodId +
                ", paymentMethodId=" + paymentMethodId +
                ", sendNetworkId=" + sendNetworkId +
                ", weight=" + weight +
                ", takerId=" + takerId +
                ", deliverymanId=" + deliverymanId +
                ", scannerId=" + scannerId +
                ", lastStopId=" + lastStopId +
                ", nextStopId=" + nextStopId +
                ", destinationId=" + destinationId +
                ", shiftId=" + shiftId +
                ", pouchId=" + pouchId +
                ", carId=" + carId +
                ", agentId=" + agentId +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", status=" + status +
                ", scanPower='" + scanPower + '\'' +
                ", destinationNetworkId=" + destinationNetworkId +
                ", scanNetworkId=" + scanNetworkId +
                '}';
    }
}